package com.wyix.entity;

/**
 * @author wangdx
 * @since 2025/8/1
 */
// 电视：实现自己的开机、关机、调节逻辑
public class TV extends Appliance {
    public TV(String name) {
        super(name);
    }

    @Override
    public void powerOn() {
        System.out.println(name + "开机：屏幕亮起，显示欢迎界面");
    }

    @Override
    public void powerOff() {
        System.out.println(name + "关机：屏幕熄灭，进入待机模式");
    }

    // 调节参数：切换频道（参数为频道名称）
    @Override
    public void adjust(String channel) {
        System.out.println(name + "调节：切换到【" + channel + "】频道");
    }
}

